package com.kb5173.search.web.action;

import com.kb5173.framework.common.IServiceResponse;
import com.kb5173.search.web.action.vo.GoodsRequest;
import com.kb5173.search.web.action.vo.SearchRequest;
import com.kb5173.search.web.action.vo.WordsRequest;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Chengfei.Sun
 */
public interface ISearchAction {
    /**
     * 搜索
     *
     * @param request
     * @param servletRequest
     * @return
     */
    IServiceResponse search(SearchRequest request, HttpServletRequest servletRequest);

    /**
     * 添加新词汇(搜索分词)
     *
     * @param request
     * @param servletRequest
     * @return
     */
    IServiceResponse addWords(WordsRequest request, HttpServletRequest servletRequest);

    /**
     * 操作索引
     *
     * @param request
     * @param servletRequest
     * @return
     */
    IServiceResponse optionDocument(GoodsRequest request, HttpServletRequest servletRequest);
}
